package cn.edu.jxau.service;

import java.util.List;

import cn.edu.jxau.dao.NoticeDao;
import cn.edu.jxau.dao.NotificationDao;
import cn.edu.jxau.domain.notice;
import cn.edu.jxau.domain.notification;

public class readMessage {
    
	//读取公告
	public static List<notice> readNotice(){
		
		NoticeDao noticeDao=new NoticeDao();
		
		return noticeDao.queryNotice();
	}
	//读取资讯
	public static List<notification> readNotification(){
		
		NotificationDao notificationDao=new NotificationDao();
		
		return notificationDao.queryNotification();
	}
	//根据id读取资讯
	public static notification readNotificationByID(String ID){
		
		NotificationDao notificationDao=new NotificationDao();
		
		
		return notificationDao.findByID(ID);
		
	}
	
}
